package com.shop.gateway.util;

import org.springframework.util.AntPathMatcher;

/**
 * @Description:
 * @author zhoulk
 * @date: 2020/1/10
 */
public class Validtors {
    public static AuthValid<Boolean, String> urlValid = (checkUrl, urls) -> {
        for (Object url : urls) {
            AntPathMatcher antPathMatcher = new AntPathMatcher();
            if (antPathMatcher.match(url.toString(), checkUrl)) return true;
        }
        return false;
    };
}
